package question4;

public class Cat extends Animal {
    public Cat() {
    }

    public Cat(String name, String age, String sex) {
        super(name, age, sex);
    }

    @Override
    public void eat() {
        System.out.println("猫吃老鼠");
    }

    public void catchMouse(){
        System.out.println("抓老鼠");
    }
}
